<%--
  Created by IntelliJ IDEA.
  User: IFT8
  Date: 2015/3/15
  Time: 10:38
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title></title>
</head>
<body>
<%
    int day;
    if (session.getAttribute("day") == null) {
        day = 1;
    } else {
        day = Integer.valueOf(session.getAttribute("day").toString());
        if (day > 7) {
            day = 1;
        }
    }
    day++;
    session.setAttribute("day", day);
%>
<%--<c:set scope="page" var="day" value="1"></c:set>--%>
<c:choose>
    <c:when test="${sessionScope.day==1}">周一</c:when>
    <c:when test="${sessionScope.day==2}">周二</c:when>
    <c:when test="${sessionScope.day==3}">周三</c:when>
    <c:when test="${sessionScope.day==4}">周四</c:when>
    <c:when test="${sessionScope.day==5}">周五</c:when>
    <c:otherwise>休息</c:otherwise>
</c:choose>
</body>
</html>
